package com.weicong.navigationdrawer;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void onClick(View view) {
        Intent intent = null;
        switch (view.getId()) {
            case R.id.btn_simple_drawer:
                intent = new Intent(this, SimpleDrawerActivity.class);
                startActivity(intent);
                break;
            case R.id.btn_simple_navigation_drawer:
                intent = new Intent(this, SimpleNavigationDrawerActivity.class);
                startActivity(intent);
                break;
            case R.id.btn_cloud_music:
                intent = new Intent(this, CloudMusicActivity.class);
                startActivity(intent);
                break;
            case R.id.btn_navigation_drawer_anim:
                intent = new Intent(this, NavigationDrawerAnimationActivity.class);
                startActivity(intent);
                break;
        }
    }
}
